From e531f32ca3703c9fa1ba0761a4bf95b4ec6cb1f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pekka=20J=C3=A4=C3=A4skel=C3=A4inen?= Date: Thu, 6 Jan 2022 16:02:55 +0200 Subject: [PATCH] [PATCH 144/144] test_dlopen fix for ICD enabled Gbp-Pq: Name 0144-test_dlopen-fix-for-ICD-enabled.patch --- tests/runtime/test_dlopen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/runtime/test_dlopen.c b/tests/runtime/test_dlopen.c index b3b525e..df0c2ff 100644 --- a/tests/runtime/test_dlopen.c +++ b/tests/runtime/test_dlopen.c @@ -23,6 +23,7 @@ #include #include +#include #ifdef __APPLE__ #define SHLIB_EXT "dylib" @@ -43,7 +44,7 @@ main (int argc, char **argv) SHLIB_ORIGIN "/../../lib/CL/devices/%s/libpocl-devices-%s.so", argv[1], argv[1]); -#ifdef ENABLE_ICD +#ifdef BUILD_ICD void *handle_libpocl = dlopen (libpocl, RTLD_NOW | RTLD_GLOBAL); if (!handle_libpocl) { @@ -66,7 +67,7 @@ main (int argc, char **argv) dlclose (handle_device); } -#ifdef ENABLE_ICD +#ifdef BUILD_ICD if (handle_libpocl) dlclose (handle_libpocl); #endif -- 2.30.2